<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: acons.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a03173.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">kernel/acons.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03629_source.html">precomp.h</a>&quot;</code><br />
<code>#include &lt;asdf.h&gt;</code><br />
</div>
<p><a href="a03173_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a49d8d23005494ae64df94bd0db2eeec2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a>&#160;&#160;&#160;(max(sizeof(<a class="el" href="a00899.html#a11dfed546c4b5fff82b4085cc5c9e67f">CURSOR</a>), sizeof(<a class="el" href="a00899.html#a7a5af39a63c1af051027044035369803">ACON</a>)) - FIELDOFFSET(<a class="el" href="a00899.html#a11dfed546c4b5fff82b4085cc5c9e67f">CURSOR</a>, bpp))</td></tr>
<tr class="separator:a49d8d23005494ae64df94bd0db2eeec2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0ed45539713103380b9fa25b67a028"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>&#160;&#160;&#160;((<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur)</td></tr>
<tr class="separator:aba0ed45539713103380b9fa25b67a028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0ed45539713103380b9fa25b67a028"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>&#160;&#160;&#160;((<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur)</td></tr>
<tr class="separator:aba0ed45539713103380b9fa25b67a028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0ed45539713103380b9fa25b67a028"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>&#160;&#160;&#160;((<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur)</td></tr>
<tr class="separator:aba0ed45539713103380b9fa25b67a028"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ae97c7fe913b35b150783120f6b545c7a"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#ae97c7fe913b35b150783120f6b545c7a">_SetSystemCursor</a> (<a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> pcur, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> id)</td></tr>
<tr class="separator:ae97c7fe913b35b150783120f6b545c7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9c59d20619fad480fe93870d584f2fa"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#ad9c59d20619fad480fe93870d584f2fa">SetSystemImage</a> (<a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> pcur, <a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> pcurSys)</td></tr>
<tr class="separator:ad9c59d20619fad480fe93870d584f2fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdd89a4bf9e2b21b1543c9453142c5de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#afdd89a4bf9e2b21b1543c9453142c5de">_GetCursorInfo</a> (<a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> pcur, int iFrame, PJIF pjifRate, LPINT pccur)</td></tr>
<tr class="separator:afdd89a4bf9e2b21b1543c9453142c5de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa55427e44d3b1e310321a8b2ad73d677"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#aa55427e44d3b1e310321a8b2ad73d677">DestroyAniIcon</a> (<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a> <a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>)</td></tr>
<tr class="separator:aa55427e44d3b1e310321a8b2ad73d677"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0235f2facf31bd5da4517e972e11966c"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#a0235f2facf31bd5da4517e972e11966c">LinkCursor</a> (<a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> pcur)</td></tr>
<tr class="separator:a0235f2facf31bd5da4517e972e11966c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aaa29b3864b7f3039760b86b071dc75"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03173.html#a2aaa29b3864b7f3039760b86b071dc75">_SetCursorIconData</a> (<a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> pcur, PUNICODE_STRING pstrModName, PUNICODE_STRING pstrName, <a class="el" href="a00365.html#a937410441066a6cecb7285eda82eb720">PCURSORDATA</a> pcurData, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> cbData)</td></tr>
<tr class="separator:a2aaa29b3864b7f3039760b86b071dc75"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a49d8d23005494ae64df94bd0db2eeec2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49d8d23005494ae64df94bd0db2eeec2">&#9670;&nbsp;</a></span>CBCOPY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CBCOPY&#160;&#160;&#160;(max(sizeof(<a class="el" href="a00899.html#a11dfed546c4b5fff82b4085cc5c9e67f">CURSOR</a>), sizeof(<a class="el" href="a00899.html#a7a5af39a63c1af051027044035369803">ACON</a>)) - FIELDOFFSET(<a class="el" href="a00899.html#a11dfed546c4b5fff82b4085cc5c9e67f">CURSOR</a>, bpp))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aba0ed45539713103380b9fa25b67a028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba0ed45539713103380b9fa25b67a028">&#9670;&nbsp;</a></span>pacon <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define pacon&#160;&#160;&#160;((<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aba0ed45539713103380b9fa25b67a028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba0ed45539713103380b9fa25b67a028">&#9670;&nbsp;</a></span>pacon <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define pacon&#160;&#160;&#160;((<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aba0ed45539713103380b9fa25b67a028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba0ed45539713103380b9fa25b67a028">&#9670;&nbsp;</a></span>pacon <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define pacon&#160;&#160;&#160;((<a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="afdd89a4bf9e2b21b1543c9453142c5de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdd89a4bf9e2b21b1543c9453142c5de">&#9670;&nbsp;</a></span>_GetCursorInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a> _GetCursorInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td>
          <td class="paramname"><em>pcur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>iFrame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PJIF&#160;</td>
          <td class="paramname"><em>pjifRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPINT&#160;</td>
          <td class="paramname"><em>pccur</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03173_source.html">kernel/acons.c</a> 第 <a class="el" href="a03173_source.html#l00194">194</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;{</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment">     * If this is only a single cursor (not an ACON) just return it and</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment">     * a frame count of 1.</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordflow">if</span> (!(pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_ACON)) {</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        *pccur = 1;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        *pjifRate = 0;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keywordflow">return</span> pcur;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    }</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="comment">     * Return the useful cursor information for the specified frame</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment">     * of the ACON.</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#define pacon ((PACON)pcur)</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keywordflow">if</span> (iFrame &lt; 0 || iFrame &gt;= <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;cicur)</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    *pccur = <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;cicur;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    *pjifRate = <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;ajifRate[iFrame];</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aicur[iFrame]];</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor">#undef pacon</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01806">tagCURSOR::CURSORF_flags</a> , 以及 <a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>.</p>

</div>
</div>
<a id="a2aaa29b3864b7f3039760b86b071dc75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aaa29b3864b7f3039760b86b071dc75">&#9670;&nbsp;</a></span>_SetCursorIconData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _SetCursorIconData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td>
          <td class="paramname"><em>pcur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUNICODE_STRING&#160;</td>
          <td class="paramname"><em>pstrModName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUNICODE_STRING&#160;</td>
          <td class="paramname"><em>pstrName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a937410441066a6cecb7285eda82eb720">PCURSORDATA</a>&#160;</td>
          <td class="paramname"><em>pcurData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>cbData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03173_source.html">kernel/acons.c</a> 第 <a class="el" href="a03173_source.html#l00321">321</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;{</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;<span class="preprocessor">#define pacon ((PACON)pcur)</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    BOOL fSuccess;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> |= pcurData-&gt;<a class="code" href="a02613.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a>;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    pcur-&gt;<a class="code" href="a02821.html#ad87885eba13efdc5f35157c02c627d2e">rt</a> = pcurData-&gt;<a class="code" href="a02613.html#ad87885eba13efdc5f35157c02c627d2e">rt</a>;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; </div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="keywordflow">if</span> (pcurData-&gt;<a class="code" href="a02613.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_ACON) {</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur == NULL);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        RtlCopyMemory(&amp;<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;cpcur,</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;                      &amp;pcurData-&gt;<a class="code" href="a02613.html#a50b16d935410e8b48b3e8370cbcf020f">cpcur</a>,</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;                      <span class="keyword">sizeof</span>(<a class="code" href="a02825.html">ACON</a>) - FIELDOFFSET(<a class="code" href="a02825.html">ACON</a>, cpcur));</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        RtlCopyMemory(&amp;pcur-&gt;<a class="code" href="a02821.html#addb503166a9e054cd90c3bc36afe74c9">bpp</a>,</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                      &amp;pcurData-&gt;<a class="code" href="a02613.html#addb503166a9e054cd90c3bc36afe74c9">bpp</a>,</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;                      <span class="keyword">sizeof</span>(<a class="code" href="a02821.html">CURSOR</a>) - FIELDOFFSET(<a class="code" href="a02821.html">CURSOR</a>, bpp));</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    }</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160; </div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="comment">     * Save name of the cursor resource</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keywordflow">if</span> (pstrName-&gt;Length != 0){</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a03641.html#a65561e3afb58680ed8f6ef29adbb2a24">AllocateUnicodeString</a>(&amp;pcur-&gt;<a class="code" href="a02821.html#a42ef841c88c6ea1b85c04bab84a32c46">strName</a>, pstrName))</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        pcur-&gt;<a class="code" href="a02821.html#a42ef841c88c6ea1b85c04bab84a32c46">strName</a> = *pstrName;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    }</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160; </div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="comment">     * Save the module name</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">if</span> (pstrModName-&gt;Buffer) {</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        pcur-&gt;<a class="code" href="a02821.html#aa7231a6a4af7cb5f1099d46a4528cbf9">atomModName</a> = <a class="code" href="a00605.html#a19c9369d5d269443b1175d063b296627">UserAddAtom</a>(pstrModName-&gt;Buffer, FALSE);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        <span class="keywordflow">if</span> (pcur-&gt;<a class="code" href="a02821.html#aa7231a6a4af7cb5f1099d46a4528cbf9">atomModName</a> == 0) {</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    }</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; </div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <span class="keywordflow">if</span> (pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_ACON) {</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;<span class="comment">         * Stash away animated icon info.</span></div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a> = (<a class="code" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>)pcur;</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur = UserAllocPool(cbData, TAG_CURSOR);</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur == NULL)</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;<span class="comment">         * Copy the handle array.  Do this in a try/except so the</span></div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<span class="comment">         * buffer will be freed if pcurData goes away.  Even though</span></div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;<span class="comment">         * cursor destruction would free the array, a fault will</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="comment">         * leave the contents in an undetermined state and cause</span></div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;<span class="comment">         * problems during cursor destruction.</span></div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;            RtlCopyMemory(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur, pcurData-&gt;<a class="code" href="a02613.html#af03a9948acc4ab1768928cedc311aac2">aspcur</a>, cbData);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;            <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aicur = (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> *)((PBYTE)<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur + (int)pcurData-&gt;<a class="code" href="a02613.html#ad3792bb93ed494d747a7c22494160a68">aicur</a>);</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;ajifRate = (PJIF)((PBYTE)<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur + (int)pcurData-&gt;<a class="code" href="a02613.html#a57c3aa875af6b4dbbe72a280b23db3fe">ajifRate</a>);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            UserFreePool(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur = NULL;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SetCursorIconData: except handled invalid data&quot;</span>);</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        }</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160; </div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;<span class="comment">         * Convert handles into pointers and lock them in.</span></div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;cpcur; i++) {</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            <a class="code" href="a02821.html">PCURSOR</a> pcurT;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160; </div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;            pcurT = (<a class="code" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>) <a class="code" href="a00365.html#adcc97c154408fd5498551b3d94332c1b">HMValidateHandle</a>(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i], TYPE_CURSOR);</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;            <span class="keywordflow">if</span> (pcurT) {</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i] = NULL;</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                Lock(&amp;<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i], pcurT);</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;                <span class="keywordflow">while</span> (--i &gt;= 0) {</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                    Unlock(&amp;<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i]);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;                }</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160; </div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;                UserFreePool(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;                <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur = NULL;</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;                <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SetCursorIconData: invalid cursor handle for animated cursor&quot;</span>);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            }</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        }</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;<span class="comment">         * Make the cursor and its bitmaps public - LAST THING!</span></div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcur-&gt;<a class="code" href="a02821.html#aff6602772c3f294355b9662022fcb78e">hbmMask</a>);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcur-&gt;<a class="code" href="a02821.html#af7620bf3cfee2cfb1f0f5dd0289dda65">cx</a>);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcur-&gt;<a class="code" href="a02821.html#af6893cd3d870ed76bf9ab454241496ca">cy</a>);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        fSuccess =</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        GreSetBitmapOwner(pcur-&gt;<a class="code" href="a02821.html#aff6602772c3f294355b9662022fcb78e">hbmMask</a>, OBJECT_OWNER_PUBLIC);</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(fSuccess);</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        <span class="keywordflow">if</span> (pcur-&gt;<a class="code" href="a02821.html#a9dc9908a9040a39812afd6de92ab138d">hbmColor</a>) {</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;            fSuccess =</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;            GreSetBitmapOwner(pcur-&gt;<a class="code" href="a02821.html#a9dc9908a9040a39812afd6de92ab138d">hbmColor</a>, OBJECT_OWNER_PUBLIC);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;            <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(fSuccess);</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    }</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160; </div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    <a class="code" href="a03173.html#a0235f2facf31bd5da4517e972e11966c">LinkCursor</a>(pcur);</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160; </div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;<span class="preprocessor">#undef pacon</span></div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01647">tagCURSORDATA::aicur</a>, <a class="el" href="a00365_source.html#l01648">tagCURSORDATA::ajifRate</a>, <a class="el" href="a03641_source.html#l00123">AllocateUnicodeString()</a>, <a class="el" href="a00365_source.html#l01646">tagCURSORDATA::aspcur</a>, <a class="el" href="a00899_source.html#l01808">tagCURSOR::atomModName</a>, <a class="el" href="a00365_source.html#l01636">tagCURSORDATA::bpp</a>, <a class="el" href="a00899_source.html#l01810">tagCURSOR::bpp</a>, <a class="el" href="a00365_source.html#l01644">tagCURSORDATA::cpcur</a>, <a class="el" href="a00365_source.html#l01631">tagCURSORDATA::CURSORF_flags</a>, <a class="el" href="a00899_source.html#l01806">tagCURSOR::CURSORF_flags</a>, <a class="el" href="a00899_source.html#l01811">tagCURSOR::cx</a>, <a class="el" href="a00899_source.html#l01812">tagCURSOR::cy</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00899_source.html#l01816">tagCURSOR::hbmColor</a>, <a class="el" href="a00899_source.html#l01815">tagCURSOR::hbmMask</a>, <a class="el" href="a03752_source.html#l00232">HMValidateHandle()</a>, <a class="el" href="a03173_source.html#l00271">LinkCursor()</a>, <a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00365_source.html#l01634">tagCURSORDATA::rt</a>, <a class="el" href="a00899_source.html#l01809">tagCURSOR::rt</a>, <a class="el" href="a00899_source.html#l01807">tagCURSOR::strName</a>, <a class="el" href="a00605_source.html#l00033">UserAddAtom()</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

</div>
</div>
<a id="ae97c7fe913b35b150783120f6b545c7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae97c7fe913b35b150783120f6b545c7a">&#9670;&nbsp;</a></span>_SetSystemCursor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL _SetSystemCursor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td>
          <td class="paramname"><em>pcur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03173_source.html">kernel/acons.c</a> 第 <a class="el" href="a03173_source.html#l00029">29</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00839.html#a14fe1eb47a22ba1b713ca76ddf4180af">CheckWinstaWriteAttributesAccess</a>()) {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    }</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcur);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">     * Check if this cursor is one of the replaceable ones.</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; COCR_CONFIGURABLE; i++)</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a03257.html#a5bca403874015b2fee3c6bb4997b8c91">rgsyscur</a>[i].Id == (WORD)<span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">     * Not replaceable, bail out.</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordflow">if</span> (i == COCR_CONFIGURABLE) {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;_SetSystemCursor: called with bad id %x.\n&quot;</span>, <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a03173.html#ad9c59d20619fad480fe93870d584f2fa">SetSystemImage</a>(pcur, <a class="code" href="a03257.html#a5bca403874015b2fee3c6bb4997b8c91">rgsyscur</a>[i].spcur);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00839_source.html#l00485">CheckWinstaWriteAttributesAccess()</a>, <a class="el" href="a03257_source.html#l00369">rgsyscur</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a03173_source.html#l00111">SetSystemImage()</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l05676">NtUserSetSystemCursor()</a>.</p>

</div>
</div>
<a id="aa55427e44d3b1e310321a8b2ad73d677"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa55427e44d3b1e310321a8b2ad73d677">&#9670;&nbsp;</a></span>DestroyAniIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL DestroyAniIcon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a>&#160;</td>
          <td class="paramname"><em>pacon</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03173_source.html">kernel/acons.c</a> 第 <a class="el" href="a03173_source.html#l00240">240</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;{</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;cpcur; i++) {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i]-&gt;CURSORF_flags &amp; CURSORF_ACONFRAME);</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        <a class="code" href="a00740.html#a5fbb8d098cc0867f9a6932c8a48fed55">_DestroyCursor</a>(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i], CURSOR_ALWAYSDESTROY);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        Unlock(&amp;<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i]);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    }</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    UserFreePool(<a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00740_source.html#l00484">_DestroyCursor()</a>, <a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00740_source.html#l00484">_DestroyCursor()</a>.</p>

</div>
</div>
<a id="a0235f2facf31bd5da4517e972e11966c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0235f2facf31bd5da4517e972e11966c">&#9670;&nbsp;</a></span>LinkCursor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID LinkCursor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td>
          <td class="paramname"><em>pcur</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03173_source.html">kernel/acons.c</a> 第 <a class="el" href="a03173_source.html#l00271">271</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;{</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="comment">     * Should never try to link twice!</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(!(pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_LINKED));</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="comment">     * We don&#39;t cache acon frames because they all belong to the</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="comment">     * root acon object.</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="comment">     * We don&#39;t cache process owned objects that are not LRSHARED</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="comment">     * either.</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordflow">if</span> (!(pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_ACONFRAME)) {</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <a class="code" href="a02905.html">PPROCESSINFO</a> ppi = pcur-&gt;<a class="code" href="a02821.html#a89169c528df8ad521ef1f85c782b1dc8">head</a>.<a class="code" href="a02549.html#a215417492fadc11678c689da2447f02e">ppi</a>;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keywordflow">if</span> (ppi == NULL) {</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="comment">             * Public cache object.</span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            pcur-&gt;<a class="code" href="a02821.html#ac0e720eb07b98eccc6c513a55b20d999">pcurNext</a>    = <a class="code" href="a03257.html#a535d7a9bdec53a538ece9e4d2e387357">gpcurFirst</a>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;            <a class="code" href="a03257.html#a535d7a9bdec53a538ece9e4d2e387357">gpcurFirst</a>        = pcur;</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;            pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> |= CURSORF_LINKED;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_LRSHARED) {</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;<span class="comment">             * Private cache LR_SHARED object.</span></div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            pcur-&gt;<a class="code" href="a02821.html#ac0e720eb07b98eccc6c513a55b20d999">pcurNext</a>    = ppi-&gt;<a class="code" href="a02905.html#ae07be7e653bd95eb1333bb2d6c4098f3">pCursorCache</a>;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            ppi-&gt;<a class="code" href="a02905.html#ae07be7e653bd95eb1333bb2d6c4098f3">pCursorCache</a> = pcur;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;            pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> |= CURSORF_LINKED;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        }</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    }</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01806">tagCURSOR::CURSORF_flags</a>, <a class="el" href="a03257_source.html#l00136">gpcurFirst</a>, <a class="el" href="a00899_source.html#l01804">tagCURSOR::head</a>, <a class="el" href="a00899_source.html#l01805">tagCURSOR::pcurNext</a>, <a class="el" href="a00899_source.html#l02412">tagPROCESSINFO::pCursorCache</a>, <a class="el" href="a00365_source.html#l01145">_PROCOBJHEAD::ppi</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03173_source.html#l00321">_SetCursorIconData()</a>.</p>

</div>
</div>
<a id="ad9c59d20619fad480fe93870d584f2fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9c59d20619fad480fe93870d584f2fa">&#9670;&nbsp;</a></span>SetSystemImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL SetSystemImage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td>
          <td class="paramname"><em>pcur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a>&#160;</td>
          <td class="paramname"><em>pcurSys</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03173_source.html">kernel/acons.c</a> 第 <a class="el" href="a03173_source.html#l00111">111</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#define CBCOPY (max(sizeof(CURSOR), sizeof(ACON)) - FIELDOFFSET(CURSOR, bpp))</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#define pacon ((PACON)pcur)</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">char</span> cbT[<a class="code" href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a>];</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> CURSORF_flags;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcurSys);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">if</span> (pcurSys == pcur)</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment">     * All ssytem images being replaced should have ordinal names</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="comment">     * and reference the USER module and be unowned.</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(!HIWORD(pcurSys-&gt;<a class="code" href="a02821.html#a42ef841c88c6ea1b85c04bab84a32c46">strName</a>.Buffer));</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcurSys-&gt;<a class="code" href="a02821.html#aa7231a6a4af7cb5f1099d46a4528cbf9">atomModName</a> == <a class="code" href="a03257.html#ad7b3068ea50c4d2757c1b3e12f921b3f">atomUSER32</a>);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment">     * if pcur was an acon, transfer frame ownerships to pcurSys.</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pcurSys-&gt;<a class="code" href="a02821.html#a89169c528df8ad521ef1f85c782b1dc8">head</a>.<a class="code" href="a02549.html#a215417492fadc11678c689da2447f02e">ppi</a> == NULL);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">if</span> (pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_ACON &amp;&amp;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            pcur-&gt;<a class="code" href="a02821.html#a89169c528df8ad521ef1f85c782b1dc8">head</a>.<a class="code" href="a02549.html#a215417492fadc11678c689da2447f02e">ppi</a> != NULL) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;cpcur; i++) {</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;            <a class="code" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>-&gt;aspcur[i]-&gt;head.ppi = NULL;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        }</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment">     * swap everything after PCURSOR-&gt;rt</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    RtlCopyMemory(&amp;cbT,          &amp;pcur-&gt;<a class="code" href="a02821.html#addb503166a9e054cd90c3bc36afe74c9">bpp</a>,    <a class="code" href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a>);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    RtlCopyMemory(&amp;pcur-&gt;<a class="code" href="a02821.html#addb503166a9e054cd90c3bc36afe74c9">bpp</a>,    &amp;pcurSys-&gt;<a class="code" href="a02821.html#addb503166a9e054cd90c3bc36afe74c9">bpp</a>, <a class="code" href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a>);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    RtlCopyMemory(&amp;pcurSys-&gt;<a class="code" href="a02821.html#addb503166a9e054cd90c3bc36afe74c9">bpp</a>, &amp;cbT,          <a class="code" href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a>);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="comment">     * Swap the CURSORF_ACON flags since they go with the swapped data.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    CURSORF_flags = pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; CURSORF_ACON;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> =</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            (pcur-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a>    &amp; ~CURSORF_ACON) |</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            (pcurSys-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp;  CURSORF_ACON);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    pcurSys-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> =</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            (pcurSys-&gt;<a class="code" href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">CURSORF_flags</a> &amp; ~CURSORF_ACON) | CURSORF_flags;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <a class="code" href="a00740.html#a5fbb8d098cc0867f9a6932c8a48fed55">_DestroyCursor</a>(pcur, CURSOR_ALWAYSDESTROY);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="comment">     * If the current logical current is changing the force the current physical</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">     * cursor to change.</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a03257.html#aff3be05ca96f4ac0845e60cd0b126320">gpcurLogCurrent</a> == pcurSys) {</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <a class="code" href="a03257.html#aff3be05ca96f4ac0845e60cd0b126320">gpcurLogCurrent</a> = NULL;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <a class="code" href="a03257.html#abeafbd3171603d555151f6eb008c6ea5">gpcurPhysCurrent</a> = NULL;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <a class="code" href="a00638.html#a9f0bf38c04ea2aeebbf17e5f1353ea34">UpdateCursorImage</a>();</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#undef pacon</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">#undef CBCOPY</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00740_source.html#l00484">_DestroyCursor()</a>, <a class="el" href="a00899_source.html#l01808">tagCURSOR::atomModName</a>, <a class="el" href="a03257_source.html#l00277">atomUSER32</a>, <a class="el" href="a00899_source.html#l01810">tagCURSOR::bpp</a>, <a class="el" href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a>, <a class="el" href="a00899_source.html#l01806">tagCURSOR::CURSORF_flags</a>, <a class="el" href="a03257_source.html#l00145">gpcurLogCurrent</a>, <a class="el" href="a03257_source.html#l00146">gpcurPhysCurrent</a>, <a class="el" href="a00899_source.html#l01804">tagCURSOR::head</a>, <a class="el" href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a>, <a class="el" href="a00365_source.html#l01145">_PROCOBJHEAD::ppi</a>, <a class="el" href="a00899_source.html#l01807">tagCURSOR::strName</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00638_source.html#l00483">UpdateCursorImage()</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03173_source.html#l00029">_SetSystemCursor()</a>, <a class="el" href="a00719_source.html#l00899">UpdateSystemCursorsFromRegistry()</a> , 以及 <a class="el" href="a00719_source.html#l00955">UpdateSystemIconsFromRegistry()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa02613_html_a50b16d935410e8b48b3e8370cbcf020f"><div class="ttname"><a href="a02613.html#a50b16d935410e8b48b3e8370cbcf020f">tagCURSORDATA::cpcur</a></div><div class="ttdeci">int cpcur</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01644">user.h:1644</a></div></div>
<div class="ttc" id="aa03173_html_aba0ed45539713103380b9fa25b67a028"><div class="ttname"><a href="a03173.html#aba0ed45539713103380b9fa25b67a028">pacon</a></div><div class="ttdeci">#define pacon</div></div>
<div class="ttc" id="aa02613_html_addb503166a9e054cd90c3bc36afe74c9"><div class="ttname"><a href="a02613.html#addb503166a9e054cd90c3bc36afe74c9">tagCURSORDATA::bpp</a></div><div class="ttdeci">DWORD bpp</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01636">user.h:1636</a></div></div>
<div class="ttc" id="aa00371_html_a01c4659626880ba56745765a3580a36b"><div class="ttname"><a href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a></div><div class="ttdeci">#define RIPMSG0(flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00131">winerrp.h:131</a></div></div>
<div class="ttc" id="aa00365_html_adcc97c154408fd5498551b3d94332c1b"><div class="ttname"><a href="a00365.html#adcc97c154408fd5498551b3d94332c1b">HMValidateHandle</a></div><div class="ttdeci">PVOID FASTCALL HMValidateHandle(HANDLE h, BYTE btype)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00232">rtl/wow.c:232</a></div></div>
<div class="ttc" id="aa03257_html_ad7b3068ea50c4d2757c1b3e12f921b3f"><div class="ttname"><a href="a03257.html#ad7b3068ea50c4d2757c1b3e12f921b3f">atomUSER32</a></div><div class="ttdeci">ATOM atomUSER32</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00277">kernel/globals.c:277</a></div></div>
<div class="ttc" id="aa03257_html_a535d7a9bdec53a538ece9e4d2e387357"><div class="ttname"><a href="a03257.html#a535d7a9bdec53a538ece9e4d2e387357">gpcurFirst</a></div><div class="ttdeci">PCURSOR gpcurFirst</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00136">kernel/globals.c:136</a></div></div>
<div class="ttc" id="aa02821_html_a825c2bbc185e1667ea173026e678e1f4"><div class="ttname"><a href="a02821.html#a825c2bbc185e1667ea173026e678e1f4">tagCURSOR::CURSORF_flags</a></div><div class="ttdeci">DWORD CURSORF_flags</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01806">userk.h:1806</a></div></div>
<div class="ttc" id="aa02821_html"><div class="ttname"><a href="a02821.html">tagCURSOR</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01803">userk.h:1803</a></div></div>
<div class="ttc" id="aa02549_html_a215417492fadc11678c689da2447f02e"><div class="ttname"><a href="a02549.html#a215417492fadc11678c689da2447f02e">_PROCOBJHEAD::ppi</a></div><div class="ttdeci">struct tagPROCESSINFO * ppi</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01145">user.h:1145</a></div></div>
<div class="ttc" id="aa03173_html_a0235f2facf31bd5da4517e972e11966c"><div class="ttname"><a href="a03173.html#a0235f2facf31bd5da4517e972e11966c">LinkCursor</a></div><div class="ttdeci">VOID LinkCursor(PCURSOR pcur)</div><div class="ttdef"><b>Definition:</b> <a href="a03173_source.html#l00271">kernel/acons.c:271</a></div></div>
<div class="ttc" id="aa00839_html_a14fe1eb47a22ba1b713ca76ddf4180af"><div class="ttname"><a href="a00839.html#a14fe1eb47a22ba1b713ca76ddf4180af">CheckWinstaWriteAttributesAccess</a></div><div class="ttdeci">BOOL CheckWinstaWriteAttributesAccess(void)</div><div class="ttdef"><b>Definition:</b> <a href="a00839_source.html#l00485">security.c:485</a></div></div>
<div class="ttc" id="aa00638_html_a9f0bf38c04ea2aeebbf17e5f1353ea34"><div class="ttname"><a href="a00638.html#a9f0bf38c04ea2aeebbf17e5f1353ea34">UpdateCursorImage</a></div><div class="ttdeci">VOID UpdateCursorImage(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00638_source.html#l00483">cursor.c:483</a></div></div>
<div class="ttc" id="aa02821_html_ad87885eba13efdc5f35157c02c627d2e"><div class="ttname"><a href="a02821.html#ad87885eba13efdc5f35157c02c627d2e">tagCURSOR::rt</a></div><div class="ttdeci">WORD rt</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01809">userk.h:1809</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa00371_html_a31aafffb49dfe98bdc749c9b35c90162"><div class="ttname"><a href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a></div><div class="ttdeci">#define RIPMSG1(flags, szFmt, p1)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00132">winerrp.h:132</a></div></div>
<div class="ttc" id="aa02821_html_a89169c528df8ad521ef1f85c782b1dc8"><div class="ttname"><a href="a02821.html#a89169c528df8ad521ef1f85c782b1dc8">tagCURSOR::head</a></div><div class="ttdeci">PROCOBJHEAD head</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01804">userk.h:1804</a></div></div>
<div class="ttc" id="aa02613_html_af03a9948acc4ab1768928cedc311aac2"><div class="ttname"><a href="a02613.html#af03a9948acc4ab1768928cedc311aac2">tagCURSORDATA::aspcur</a></div><div class="ttdeci">struct tagCURSOR ** aspcur</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01646">user.h:1646</a></div></div>
<div class="ttc" id="aa02905_html_ae07be7e653bd95eb1333bb2d6c4098f3"><div class="ttname"><a href="a02905.html#ae07be7e653bd95eb1333bb2d6c4098f3">tagPROCESSINFO::pCursorCache</a></div><div class="ttdeci">PCURSOR pCursorCache</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02412">userk.h:2412</a></div></div>
<div class="ttc" id="aa00365_html_a6be3d60b70c23e47263a9b116f3f6573"><div class="ttname"><a href="a00365.html#a6be3d60b70c23e47263a9b116f3f6573">PCURSOR</a></div><div class="ttdeci">struct tagCURSOR * PCURSOR</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00056">user.h:56</a></div></div>
<div class="ttc" id="aa03641_html_a65561e3afb58680ed8f6ef29adbb2a24"><div class="ttname"><a href="a03641.html#a65561e3afb58680ed8f6ef29adbb2a24">AllocateUnicodeString</a></div><div class="ttdeci">BOOL AllocateUnicodeString(PUNICODE_STRING pstrDst, PUNICODE_STRING pstrSrc)</div><div class="ttdef"><b>Definition:</b> <a href="a03641_source.html#l00123">kernel/random.c:123</a></div></div>
<div class="ttc" id="aa00899_html_a64187578cc01bb9a71928cabc1a02ae3"><div class="ttname"><a href="a00899.html#a64187578cc01bb9a71928cabc1a02ae3">PACON</a></div><div class="ttdeci">struct tagACON * PACON</div></div>
<div class="ttc" id="aa02825_html"><div class="ttname"><a href="a02825.html">tagACON</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01819">userk.h:1819</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa02821_html_aff6602772c3f294355b9662022fcb78e"><div class="ttname"><a href="a02821.html#aff6602772c3f294355b9662022fcb78e">tagCURSOR::hbmMask</a></div><div class="ttdeci">HBITMAP hbmMask</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01815">userk.h:1815</a></div></div>
<div class="ttc" id="aa02905_html"><div class="ttname"><a href="a02905.html">tagPROCESSINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02386">userk.h:2386</a></div></div>
<div class="ttc" id="aa00371_html_a41f433389f20db57f042022a662e96de"><div class="ttname"><a href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a></div><div class="ttdeci">#define RIP_WARNING</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00029">winerrp.h:29</a></div></div>
<div class="ttc" id="aa02821_html_ac0e720eb07b98eccc6c513a55b20d999"><div class="ttname"><a href="a02821.html#ac0e720eb07b98eccc6c513a55b20d999">tagCURSOR::pcurNext</a></div><div class="ttdeci">struct tagCURSOR * pcurNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01805">userk.h:1805</a></div></div>
<div class="ttc" id="aa02821_html_af7620bf3cfee2cfb1f0f5dd0289dda65"><div class="ttname"><a href="a02821.html#af7620bf3cfee2cfb1f0f5dd0289dda65">tagCURSOR::cx</a></div><div class="ttdeci">DWORD cx</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01811">userk.h:1811</a></div></div>
<div class="ttc" id="aa02821_html_a9dc9908a9040a39812afd6de92ab138d"><div class="ttname"><a href="a02821.html#a9dc9908a9040a39812afd6de92ab138d">tagCURSOR::hbmColor</a></div><div class="ttdeci">HBITMAP hbmColor</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01816">userk.h:1816</a></div></div>
<div class="ttc" id="aa00740_html_a5fbb8d098cc0867f9a6932c8a48fed55"><div class="ttname"><a href="a00740.html#a5fbb8d098cc0867f9a6932c8a48fed55">_DestroyCursor</a></div><div class="ttdeci">BOOL _DestroyCursor(PCURSOR pcur, DWORD cmdDestroy)</div><div class="ttdef"><b>Definition:</b> <a href="a00740_source.html#l00484">loadbits.c:484</a></div></div>
<div class="ttc" id="aa02613_html_a825c2bbc185e1667ea173026e678e1f4"><div class="ttname"><a href="a02613.html#a825c2bbc185e1667ea173026e678e1f4">tagCURSORDATA::CURSORF_flags</a></div><div class="ttdeci">DWORD CURSORF_flags</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01631">user.h:1631</a></div></div>
<div class="ttc" id="aa02613_html_ad3792bb93ed494d747a7c22494160a68"><div class="ttname"><a href="a02613.html#ad3792bb93ed494d747a7c22494160a68">tagCURSORDATA::aicur</a></div><div class="ttdeci">DWORD * aicur</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01647">user.h:1647</a></div></div>
<div class="ttc" id="aa00605_html_a19c9369d5d269443b1175d063b296627"><div class="ttname"><a href="a00605.html#a19c9369d5d269443b1175d063b296627">UserAddAtom</a></div><div class="ttdeci">ATOM UserAddAtom(LPCWSTR lpAtom, BOOL bPin)</div><div class="ttdef"><b>Definition:</b> <a href="a00605_source.html#l00033">atom.c:33</a></div></div>
<div class="ttc" id="aa03173_html_ad9c59d20619fad480fe93870d584f2fa"><div class="ttname"><a href="a03173.html#ad9c59d20619fad480fe93870d584f2fa">SetSystemImage</a></div><div class="ttdeci">BOOL SetSystemImage(PCURSOR pcur, PCURSOR pcurSys)</div><div class="ttdef"><b>Definition:</b> <a href="a03173_source.html#l00111">kernel/acons.c:111</a></div></div>
<div class="ttc" id="aa02821_html_aa7231a6a4af7cb5f1099d46a4528cbf9"><div class="ttname"><a href="a02821.html#aa7231a6a4af7cb5f1099d46a4528cbf9">tagCURSOR::atomModName</a></div><div class="ttdeci">ATOM atomModName</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01808">userk.h:1808</a></div></div>
<div class="ttc" id="aa03257_html_aff3be05ca96f4ac0845e60cd0b126320"><div class="ttname"><a href="a03257.html#aff3be05ca96f4ac0845e60cd0b126320">gpcurLogCurrent</a></div><div class="ttdeci">PCURSOR gpcurLogCurrent</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00145">kernel/globals.c:145</a></div></div>
<div class="ttc" id="aa02821_html_addb503166a9e054cd90c3bc36afe74c9"><div class="ttname"><a href="a02821.html#addb503166a9e054cd90c3bc36afe74c9">tagCURSOR::bpp</a></div><div class="ttdeci">DWORD bpp</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01810">userk.h:1810</a></div></div>
<div class="ttc" id="aa02821_html_af6893cd3d870ed76bf9ab454241496ca"><div class="ttname"><a href="a02821.html#af6893cd3d870ed76bf9ab454241496ca">tagCURSOR::cy</a></div><div class="ttdeci">DWORD cy</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01812">userk.h:1812</a></div></div>
<div class="ttc" id="aa02821_html_a42ef841c88c6ea1b85c04bab84a32c46"><div class="ttname"><a href="a02821.html#a42ef841c88c6ea1b85c04bab84a32c46">tagCURSOR::strName</a></div><div class="ttdeci">UNICODE_STRING strName</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01807">userk.h:1807</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa03257_html_a5bca403874015b2fee3c6bb4997b8c91"><div class="ttname"><a href="a03257.html#a5bca403874015b2fee3c6bb4997b8c91">rgsyscur</a></div><div class="ttdeci">SYSCFGICO rgsyscur[COCR_CONFIGURABLE]</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00369">kernel/globals.c:369</a></div></div>
<div class="ttc" id="aa02613_html_a57c3aa875af6b4dbbe72a280b23db3fe"><div class="ttname"><a href="a02613.html#a57c3aa875af6b4dbbe72a280b23db3fe">tagCURSORDATA::ajifRate</a></div><div class="ttdeci">PJIF ajifRate</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01648">user.h:1648</a></div></div>
<div class="ttc" id="aa03257_html_abeafbd3171603d555151f6eb008c6ea5"><div class="ttname"><a href="a03257.html#abeafbd3171603d555151f6eb008c6ea5">gpcurPhysCurrent</a></div><div class="ttdeci">PCURSOR gpcurPhysCurrent</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00146">kernel/globals.c:146</a></div></div>
<div class="ttc" id="aa03173_html_a49d8d23005494ae64df94bd0db2eeec2"><div class="ttname"><a href="a03173.html#a49d8d23005494ae64df94bd0db2eeec2">CBCOPY</a></div><div class="ttdeci">#define CBCOPY</div></div>
<div class="ttc" id="aa02613_html_ad87885eba13efdc5f35157c02c627d2e"><div class="ttname"><a href="a02613.html#ad87885eba13efdc5f35157c02c627d2e">tagCURSORDATA::rt</a></div><div class="ttdeci">WORD rt</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01634">user.h:1634</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a03173.html">acons.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
